﻿<Window x:Class="OrderEntryProject.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Loaded="Window_Loaded"
        Title="MainWindow" Height="350" Width="525">
   <Grid>
      <Grid.RowDefinitions>
         <RowDefinition Height="Auto" />
         <RowDefinition Height="Auto" />
         <RowDefinition Height="*" />
      </Grid.RowDefinitions>
      <Menu>
         <MenuItem Header="Save" Name="mnuSave" Click="mnuSave_Click" />
         <MenuItem Header="New Order" Name="mnuOrder" Click="mnuOrder_Click" />
         <MenuItem Header="Exit" Name="mnuExit" Click="mnuExit_Click" />
         <MenuItem Header="Symmetric Encryption" Name="mnuSymmetricEncryption" Click="mnuSymmetricEncryption_Click" />
         <MenuItem Header="Symmetric Decryption" Name="mnuSymmetricDecription" Click="mnuSymmetricDecription_Click" />
		 <MenuItem Header="Asymmetric Encryption" Name="mnuAsymmetricEncryption" Click="mnuAsymmetricEncryption_Click" />
		 <MenuItem Header="Asymmetric Decryption" Name="mnuAsymmetricDecryption" Click="mnuAsymmetricDecryption_Click" />
		 <MenuItem Header="Hash" Name="mnuHash" Click="mnuHash_Click" />
		 <MenuItem Header="Digital Signature" Name="mnuDigitalSignature" Click="mnuDigitalSignature_Click" />
		 <MenuItem Header="Verify Digital Signature" Name="mnuVerifyDigitalSignature" Click="mnuVerifyDigitalSignature_Click" />
		 <MenuItem Header="Encrypt Connection String" Name="mnuEncryptConnectionString" Click="mnuEncryptConnectionString_Click" />
		</Menu>
      <ComboBox Grid.Row="1"  Name="cmbCustomers" Margin="5" 
                SelectionChanged="cmbCustomers_SelectionChanged" />
      <ListBox Grid.Row="2" Margin="5" Name="lstOrders">
         <ListBox.ItemTemplate>
            <DataTemplate>
               <Border CornerRadius="5" BorderThickness="2" BorderBrush="Blue" Margin="3">
               <StackPanel Orientation="Horizontal">
                  <TextBlock Text="Order #" 
                             TextAlignment="Right" Width="40"/>
                  <TextBlock Name="txtOrderID" 
                             Text="{Binding Path=OrderID}" Margin="5,0,10,0" Width="30"/>
                  <TextBlock Text="Order Date:"  TextAlignment="Right" Width="80"/>
                     <TextBlock Name="txtOrderDate" 
                                Text="{Binding Path=OrderDate, StringFormat={}{0:MM/dd/yyyy}}" 
                                Margin="5,0,10,0" Width="75"/>
                  <TextBlock Text="Required Date:"  TextAlignment="Right" Width="80"/>
                     <TextBlock Name="txtRequredtDate" 
                                Text="{Binding Path=RequiredDate, StringFormat={}{0:MM/dd/yyyy}}" 
                                Margin="5,0,10,0" Width="75"/>
               </StackPanel>
               </Border>
            </DataTemplate>
         </ListBox.ItemTemplate>
      </ListBox>
   </Grid>
</Window>
